package gbench.test.mock;

import java.net.URISyntaxException;
import java.util.Arrays;

import org.apache.log4j.Logger;
import org.junit.jupiter.api.Test;

import com.mockCommon.SimpleJiraClient;

public class JunitJira {
	
	static Logger log= Logger.getLogger(JunitJira.class);
	
	/**
	 * 
	 * @param objects
	 */
	public void println(Object ... objects) {
		//log.info(objects);
		System.out.println(Arrays.asList(objects));
	}
	
	@Test
	public void foo() {
		final var jiraclient = new SimpleJiraClient("http://localhost:8080/","gbench","pi31415926");
		try {
			final var issue = jiraclient.get_issue("IT-2");
			println(issue.getDescription());
			println(issue.getIssueType());
		} catch (URISyntaxException e) {
			e.printStackTrace();
		}
	}

}
